package com.r2coding.music.dao;

import com.r2coding.music.entity.SongEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.r2coding.music.vo.resp.SongRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 歌曲
 * 
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-05-04 20:46:11
 */
@Mapper
public interface SongDao extends BaseMapper<SongEntity> {

    List<SongRespVo> getList(@Param("songName") String songName,
                             @Param("singerName") String singerName,
                             @Param("status") Integer status);

    SongRespVo getSongById(@Param("id") Integer id);

    List<SongRespVo> getSongsByCategoryId(@Param("id") Integer id);
}
